﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace University.Models
{
    public class Schedule
    {
        public int ScheduleId { get; set; }

        [Required(ErrorMessage = "Please provide Group value")]
        [Display(Name = "Group")]
        public virtual Group Group { get; set; }

        [Required(ErrorMessage = "Please provide term number")]
        [Display(Name = "Term No")]
        [Range(1, 10, ErrorMessage = "Not a valid day")]
        public int Semestru { get; set; }
        public virtual ICollection<ScheduleItem> ScheduleItems { get; set; }
    }
}